.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  padding: 20px;
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 自定义样式 */
.admin-layout {
  min-height: 100vh;
}

.admin-header {
  background: #fff;
  padding: 0 24px;
  box-shadow: 0 1px 4px rgba(0,21,41,.08);
}

.admin-header .ant-layout-header {
  background: #fff;
  padding: 0;
}

.admin-sider {
  background: #001529;
}

.admin-sider .ant-layout-sider-children {
  background: #001529;
}

.admin-content {
  margin: 24px;
  padding: 24px;
  background: #fff;
  min-height: 280px;
}

.admin-logo {
  height: 32px;
  margin: 16px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

.user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-info .ant-avatar {
  margin-right: 8px;
}

.login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 400px;
}

.login-title {
  text-align: center;
  margin-bottom: 32px;
  color: #1890ff;
  font-size: 24px;
  font-weight: bold;
}

.dashboard-card {
  margin-bottom: 16px;
}

.dashboard-card .ant-card-body {
  padding: 24px;
}

.statistic-card {
  text-align: center;
}

.statistic-card .ant-statistic-title {
  color: #666;
  font-size: 14px;
}

.statistic-card .ant-statistic-content {
  color: #1890ff;
}

.recent-activities {
  margin-top: 24px;
}

.activity-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-time {
  color: #999;
  font-size: 12px;
}

.activity-content {
  margin-top: 4px;
  color: #333;
}

.page-header {
  background: #fff;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.page-title {
  font-size: 20px;
  font-weight: 500;
  color: #262626;
  margin: 0;
}

.filter-bar {
  margin-bottom: 16px;
  padding: 16px;
  background: #fafafa;
  border-radius: 6px;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.status-tag {
  font-size: 12px;
}

.amount-text {
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.progress-text {
  font-size: 12px;
  color: #666;
}

.contract-steps {
  margin: 24px 0;
}

.timeline-item {
  margin-bottom: 16px;
}

.timeline-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.timeline-time {
  color: #999;
  font-size: 12px;
  margin-bottom: 4px;
}

.timeline-desc {
  color: #666;
}

.settlement-summary {
  background: #f6f8fa;
  padding: 16px;
  border-radius: 6px;
  margin: 16px 0;
}

.settlement-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.settlement-item:last-child {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid #e8e8e8;
  font-weight: bold;
}

.positive-amount {
  color: #52c41a;
}

.negative-amount {
  color: #f5222d;
}

.final-amount {
  color: #1890ff;
  font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .admin-content {
    margin: 16px;
    padding: 16px;
  }
  
  .login-form {
    width: 90%;
    margin: 0 20px;
    padding: 24px;
  }
  
  .filter-bar {
    padding: 12px;
  }
  
  .table-actions {
    flex-direction: column;
    gap: 4px;
  }
}

/* 打印样式 */
@media print {
  .admin-header,
  .admin-sider,
  .filter-bar,
  .table-actions {
    display: none !important;
  }
  
  .admin-content {
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
}
